package com.example.chapter12.design.factory.demo2;

import com.example.chapter12.design.factory.demo1.Fruit;

public class User {
    private void eat(){
        AppleFactory appleFactory = new AppleFactory();
        Fruit apple = appleFactory.create();
        PearFactory pearFactory = new PearFactory();
        Fruit pear = pearFactory.create();

    }
}
